package com.example.spring_source_code.anno.bean;

import com.example.spring_source_code.bean.post.Bean01;
import com.example.spring_source_code.bean.post.Bean02;
import com.example.spring_source_code.bean.post.Bean03;
import org.springframework.context.annotation.Bean;

public class Config {

    @Bean(initMethod = "initMethod")
    public Bean01 bean01() {
        return new Bean01();
    }

    @Bean
    public Bean02 bean02() {
        return new Bean02();
    }

    public Bean03 bean03() {
        return new Bean03();
    }
}
